<template>
  <button @click="emitEvent">发射事件</button>
</template>

<script>
// import { EventBus } from '../utils/event-bus.js';

export default {
  name: 'EmitView',
  data() {
    return {
      someReactiveData: '这是来自组件A的消息',
    }
  },
  methods: {
    emitEvent() {
      this.$bus.$emit('my-event', this.someReactiveData);
    }
  }
}
</script>

<style scoped></style>
